import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:ulearning_app/common/utils/app_colors.dart';

Widget text24Normal(
    {String text = "第一屏", Color color = AppColors.primaryText}) {
  return Text(
    text,
    textAlign: TextAlign.center,
    style: TextStyle(fontSize: 24, color: color),
  );
}

Widget text16Normal(
    {String text = "文本", Color color = AppColors.primarySecondaryElementText}) {
  return Text(
    text,
    textAlign: TextAlign.center,
    style: TextStyle(fontSize: 16, color: color),
  );
}

Widget text14Normal(
    {String text = "文本", Color color = AppColors.primaryThridElementText}) {
  return Text(
    text,
    textAlign: TextAlign.start,
    style: TextStyle(fontSize: 14.sp, color: color),
  );
}

// 下划线文本
Widget textUnderLine(
    {String text = "文本", Color color = AppColors.primaryText}) {
  return GestureDetector(
    onTap: () {},
    child: Text(
      text,
      style: TextStyle(
        fontSize: 12.sp,
        color: color,
        decoration: TextDecoration.underline,
        decorationColor: AppColors.primaryText,
      ),
    ),
  );
}
